'use strict';

module.exports = function(opts) {
  var middleware = function *wechat(next) {
    opts.wechat(opts.token).middleware(function *() {
      console.log(this.weixin);
    });
  };
  return middleware;
};
